package com.springbootx.clickhouse.clickhouse.service.impl;

import com.springbootx.clickhouse.clickhouse.mapper.UsersMapper;
import com.springbootx.clickhouse.clickhouse.pojo.Users;
import com.springbootx.clickhouse.clickhouse.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Tony.niu (hystrix0779@yeah.net)
 * @version V1.0
 * @date 2020/10/23
 **/
@Service
public class UserServiceImpl implements UserService {
    @Resource
    UsersMapper usersMapper;
    @Override
    public void saveData(Users users) {
        usersMapper.saveData(users);
    }

    @Override
    public Users selectById(Integer id) {
        return usersMapper.selectById(id);
    }

    @Override
    public List<Users> selectList() {
        return usersMapper.selectList();
    }

    @Override
    public void saveDates(List<Users> list) {
        usersMapper.saveDates(list);
    }
}
